package com.aaa.check.controller.api;


import com.aaa.check.service.CheckListService;
import com.aaa.check.vo.CheckListVo;
import com.aaa.entity.CheckResult;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("check/api/list")
public class ApiCheckListController {
    @Autowired
    private CheckListService checkListService;
    @PostMapping("searchU/{currentPage}/{pageSize}")
    public Result<IPage<CheckResult>> searchUser(
            @PathVariable Integer currentPage,
            @PathVariable Integer pageSize,
            @RequestBody CheckListVo checkListVo
    ){
        return checkListService.findByCondition(currentPage,pageSize,checkListVo);
    }




}
